<td colspan="4">
  <% form_remote_for :expense, Expense.new,
    :url => hash_for_expenses_url(:project => @project, :action => 'update', :id=> params[:id]),
    :loading => 'ExpenseTracker.disableExpenseForm()',
    :complete => 'ExpenseTracker.enableExpenseForm()',
    :html => { :id => 'expense-form' } do |f| %>
    <table>
      <tr>
        <td>
          <label for="expense_description">Description:</label>
          <%= text_field 'expense', 'description', :size => 60 %><br />
          <label for="expense_amount">Amount:</label>
          <%= text_field 'expense', 'amount', :size => 10 %>
          <br />
          <%= submit_tag 'Update' %>
          <%= button_to_remote 'Cancel',
            :url => hash_for_expenses_url(
            :project => @project,
            :action => 'cancel',
            :id=>params[:id]) %>
        </td>
      </tr>
    </table>
  <% end %>
</td>